@charset "utf-8";
$fontSize:100;
@function r($p) {
    @return $p/$fontSize*1rem;
}
//海报
.banner_item {
    position: relative;
    width: 77%;
    margin: r(145) auto r(80);
    overflow: hidden;
}
.banner_img img{
    width: 100%;
}
.banner_but{
    top: 70%;
}
.product_nav{
    margin-bottom: r(80);
    text-align: center;
    a{
        color: black;
        font-size: 18px;
        display: inline-block;
    }
    a::after{
        content: "";
        width: 0;
        height: 1px;
        margin: 8px 0;
        background: black;
        display: block;
        transition: all 1s;
    }
    a:hover::after{
        width: 100%;
    }
    i{
        padding: 0 8px;
        color: #fe8582;
    }
}
.product{
    width: 64.8%;
    margin: r(80) auto 0;
}
.product_cont{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; 
}
.product_item{
    overflow: hidden;
}
.product_item_sml{
    width: 35.2%;
}
.product_item_lar{
    width: 61.5%;
}
.product_img_sml{
    width: 100%;
    position: relative;
    padding-top: 118.7%;
    overflow: hidden;
    cursor: pointer;
    img{
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        border: 0;
    }
}
.product_img_lar{
    width: 100%;
    position: relative;
    padding-top: 67.8%;
    overflow: hidden;
    cursor: pointer;
    img{
        height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        border: 0;
    }
}
.item_tit{
    text-align: center;
    p:nth-child(1){
        font-size: 14px;
        margin: 35px 0;
    }
}
.product_but{
    width: 200px;
    height: 40px;
    margin: 50px auto;
    border: 1px solid black;
    font-size: 14px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
}
.product_but:hover{
    background: #B9B9B9;
    border: 1px solid #B9B9B9;
    color: white;
}
@media only screen and (max-width: 768px){
    .product_nav{
        a{
            font-size: 16px;
            display: block;
            margin: 8px 30px;
        }
        a::after{
            margin: 8px 0;
            background-color: #B9B9B9;
        }
        i{
            display: none;
        }
    }
    .banner_item {
        position: relative;
        width: 95%;
        margin: r(215) auto r(80);
        overflow: hidden;
    }
    .product{
        width: 100%;
    }
    .item_tit{
        p:nth-child(1){
            font-size: 12px;
            margin: 15px 0;
        }
    }
    .product_cont{
        justify-content: center;
    }
    .product_item_sml{
        width: 95%;
    }
    .product_item_lar{
        width: 95%;
    }
    .product_but{
        width: 200px;
        height: 30px;
        margin: 30px auto;
        font-size: 14px;
        line-height: 30px;
    }
    
}
